package com.winhxd.b2c.customer.service.impl;

import com.winhxd.b2c.common.domain.customer.model.CustomerRevenueDetail;
import com.winhxd.b2c.customer.dao.CustomerRevenueDetailMapper;
import com.winhxd.b2c.customer.service.CustomerRevenueDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author caiyulong
 */
@Service
public class CustomerRevenueDetailServiceImpl implements CustomerRevenueDetailService {

    @Autowired
    private CustomerRevenueDetailMapper customerRevenueDetailMapper;

    @Override
    public void batchInsert(List<CustomerRevenueDetail> customerRevenueDetails) {
        customerRevenueDetailMapper.batchInsert(customerRevenueDetails);
    }

    @Override
    public List<CustomerRevenueDetail> findCustomerRevenueDetailByOrderNo(String orderNo) {
        return customerRevenueDetailMapper.selectListByOrderNo(orderNo);
    }
}
